package com.fingard.dsp.bank.reqrespobj.auth;

import java.util.HashMap;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RetAtsBase;
import com.fingard.dsp.bank.reqrespobj.auth.detail.RetAtsAuthDetail;
import com.fingard.xml.XmlTextWriter;

public class RetAtsAuth extends RetAtsBase {
	private RetAtsAuthDetail retDetail;
	
	public RetAtsAuth(ReqRespHeader p_header) {
		retHeader = p_header;
		retXmlWriter = new XmlTextWriter();
	}
	
	public void writeRetDetail(RetAtsAuthDetail p_detail){
		writeStart();
		
		retDetail = p_detail;
		p_detail.writeToXml(retXmlWriter);
		retXmlWriter.writeEndElement();
		
		writeEnd();
	}
	
	public HashMap<String,String> getRetAtsHashMap(){
		return retDetail.writeToHash();
    }
}
